package com.md.drcs.dicom.entity;

import com.md.common.utils.json.JSONUtil;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 功能描述：t_study表实体
 * 
 * @author liuzg1@guahao.com
 * @version 1.0
 * @date 2018/12/11 18:04
 * @since JDK 1.8
 */
@Table(name = "t_study")
public class StudyEntity implements Serializable{
	
	//columns START
	/**
	 * nStuId
	 */
	@Id
	@Column(name = "nStuId")
	private Long nStuId;
	/**
	 * nPatID
	 */
	@Column(name = "nPatID")
	private Long nPatID;
	/**
	 * sPatIDInPacs
	 */
	@Column(name = "sPatIDInPacs")
	private String sPatIDInPacs;
	/**
	 * sStuIdInPacs
	 */
	@Column(name = "sStuIdInPacs")
	private String sStuIdInPacs;
	/**
	 * sStuAge
	 */
	@Column(name = "sStuAge")
	private String sStuAge;
	/**
	 * stuDate
	 */
	@Column(name = "stuDate")
	private LocalDateTime stuDate;
	/**
	 * sStuPart
	 */
	@Column(name = "sStuPart")
	private String sStuPart;
	/**
	 * nStuSta
	 */
	@Column(name = "nStuSta")
	private Integer nStuSta;
	/**
	 * sRequDept
	 */
	@Column(name = "sRequDept")
	private String sRequDept;
	/**
	 * sRequDoc
	 */
	@Column(name = "sRequDoc")
	private String sRequDoc;
	/**
	 * sStuType
	 */
	@Column(name = "sStuType")
	private String sStuType;
	/**
	 * sEmergent
	 */
	@Column(name = "sEmergent")
	private String sEmergent;
	/**
	 * sHosNo
	 */
	@Column(name = "sHosNo")
	private String sHosNo;
	/**
	 * sBedNo
	 */
	@Column(name = "sBedNo")
	private String sBedNo;
	/**
	 * nRecordStatus
	 */
	@Column(name = "nRecordStatus")
	private Integer nRecordStatus;
	/**
	 * nDelFlag
	 */
	@Column(name = "nDelFlag")
	private Integer nDelFlag;
	/**
	 * recordDate
	 */
	@Column(name = "recordDate")
	private LocalDateTime recordDate;
	/**
	 * nNumofIns
	 */
	@Column(name = "nNumofIns")
	private Integer nNumofIns;
	/**
	 * sStuInsUid
	 */
	@Column(name = "sStuInsUid")
	private String sStuInsUid;
	/**
	 * sAccessNumber
	 */
	@Column(name = "sAccessNumber")
	private String sAccessNumber;
	/**
	 * sStuId_b
	 */
	@Column(name = "sStuId_b")
	private String sstuidB;
	/**
	 * sImagePath
	 */
	@Column(name = "sImagePath")
	private String sImagePath;
	/**
	 * nBurn
	 */
	@Column(name = "nBurn")
	private Integer nBurn;
	/**
	 * burnDate
	 */
	@Column(name = "burnDate")
	private LocalDateTime burnDate;
	/**
	 * sMod
	 */
	@Column(name = "sMod")
	private String sMod;
	/**
	 * sDev
	 */
	@Column(name = "sDev")
	private String sDev;
	/**
	 * imageRecvDate
	 */
	@Column(name = "imageRecvDate")
	private LocalDateTime imageRecvDate;
	/**
	 * sOtherInfo
	 */
	@Column(name = "sOtherInfo")
	private String sOtherInfo;
	/**
	 * sStuStatus
	 */
	@Column(name = "sStuStatus")
	private String sStuStatus;
	/**
	 * sStuPartClass
	 */
	@Column(name = "sStuPartClass")
	private String sStuPartClass;

	@Column(name = "bCloseCloud")
	private Byte bCloseCloud;
	//columns END 数据库字段结束
	
	//get and set
	public void setNStuId(Long nStuId) {
		this.nStuId = nStuId;
	}
	
	public Long getNStuId() {
		return this.nStuId;
	}
	
	public void setNPatID(Long nPatID) {
		this.nPatID = nPatID;
	}
	
	public Long getNPatID() {
		return this.nPatID;
	}

	
	public void setSPatIDInPacs(String sPatIDInPacs) {
		this.sPatIDInPacs = StringUtils.trim(sPatIDInPacs);
	}
	
	public String getSPatIDInPacs() {
		return this.sPatIDInPacs;
	}
	
	public void setSStuIdInPacs(String sStuIdInPacs) {
		this.sStuIdInPacs = StringUtils.trim(sStuIdInPacs);
	}
	
	public String getSStuIdInPacs() {
		return this.sStuIdInPacs;
	}
	
	public void setSStuAge(String sStuAge) {
		this.sStuAge = StringUtils.trim(sStuAge);
	}
	
	public String getSStuAge() {
		return this.sStuAge;
	}
	
	public void setStuDate(LocalDateTime stuDate) {
		this.stuDate = stuDate;
	}
	
	public LocalDateTime getStuDate() {
		return this.stuDate;
	}
	
	public void setSStuPart(String sStuPart) {
		this.sStuPart = StringUtils.trim(sStuPart);
	}
	
	public String getSStuPart() {
		return this.sStuPart;
	}
	
	public void setNStuSta(Integer nStuSta) {
		this.nStuSta = nStuSta;
	}
	
	public Integer getNStuSta() {
		return this.nStuSta;
	}
	
	public void setSRequDept(String sRequDept) {
		this.sRequDept = StringUtils.trim(sRequDept);
	}
	
	public String getSRequDept() {
		return this.sRequDept;
	}
	
	public void setSRequDoc(String sRequDoc) {
		this.sRequDoc = StringUtils.trim(sRequDoc);
	}
	
	public String getSRequDoc() {
		return this.sRequDoc;
	}
	
	public void setSStuType(String sStuType) {
		this.sStuType = StringUtils.trim(sStuType);
	}
	
	public String getSStuType() {
		return this.sStuType;
	}
	
	public void setSEmergent(String sEmergent) {
		this.sEmergent = StringUtils.trim(sEmergent);
	}
	
	public String getSEmergent() {
		return this.sEmergent;
	}
	
	public void setSHosNo(String sHosNo) {
		this.sHosNo = StringUtils.trim(sHosNo);
	}
	
	public String getSHosNo() {
		return this.sHosNo;
	}
	
	public void setSBedNo(String sBedNo) {
		this.sBedNo = StringUtils.trim(sBedNo);
	}
	
	public String getSBedNo() {
		return this.sBedNo;
	}
	
	public void setNRecordStatus(Integer nRecordStatus) {
		this.nRecordStatus = nRecordStatus;
	}
	
	public Integer getNRecordStatus() {
		return this.nRecordStatus;
	}
	
	public void setNDelFlag(Integer nDelFlag) {
		this.nDelFlag = nDelFlag;
	}
	
	public Integer getNDelFlag() {
		return this.nDelFlag;
	}
	
	public void setRecordDate(LocalDateTime recordDate) {
		this.recordDate = recordDate;
	}
	
	public LocalDateTime getRecordDate() {
		return this.recordDate;
	}
	
	public void setNNumofIns(Integer nNumofIns) {
		this.nNumofIns = nNumofIns;
	}
	
	public Integer getNNumofIns() {
		return this.nNumofIns;
	}
	
	public void setSStuInsUid(String sStuInsUid) {
		this.sStuInsUid = StringUtils.trim(sStuInsUid);
	}
	
	public String getSStuInsUid() {
		return this.sStuInsUid;
	}
	
	public void setSAccessNumber(String sAccessNumber) {
		this.sAccessNumber = StringUtils.trim(sAccessNumber);
	}
	
	public String getSAccessNumber() {
		return this.sAccessNumber;
	}
	
	public void setSstuidB(String sstuidB) {
		this.sstuidB = StringUtils.trim(sstuidB);
	}
	
	public String getSstuidB() {
		return this.sstuidB;
	}
	
	public void setSImagePath(String sImagePath) {
		this.sImagePath = StringUtils.trim(sImagePath);
	}
	
	public String getSImagePath() {
		return this.sImagePath;
	}
	
	public void setNBurn(Integer nBurn) {
		this.nBurn = nBurn;
	}
	
	public Integer getNBurn() {
		return this.nBurn;
	}
	
	public void setBurnDate(LocalDateTime burnDate) {
		this.burnDate = burnDate;
	}
	
	public LocalDateTime getBurnDate() {
		return this.burnDate;
	}
	
	public void setSMod(String sMod) {
		this.sMod = StringUtils.trim(sMod);
	}
	
	public String getSMod() {
		return this.sMod;
	}
	
	public void setSDev(String sDev) {
		this.sDev = StringUtils.trim(sDev);
	}
	
	public String getSDev() {
		return this.sDev;
	}
	
	public void setImageRecvDate(LocalDateTime imageRecvDate) {
		this.imageRecvDate = imageRecvDate;
	}
	
	public LocalDateTime getImageRecvDate() {
		return this.imageRecvDate;
	}
	
	public void setSOtherInfo(String sOtherInfo) {
		this.sOtherInfo = StringUtils.trim(sOtherInfo);
	}
	
	public String getSOtherInfo() {
		return this.sOtherInfo;
	}
	
	public void setSStuStatus(String sStuStatus) {
		this.sStuStatus = StringUtils.trim(sStuStatus);
	}
	
	public String getSStuStatus() {
		return this.sStuStatus;
	}
	
	public void setSStuPartClass(String sStuPartClass) {
		this.sStuPartClass = StringUtils.trim(sStuPartClass);
	}
	
	public String getSStuPartClass() {
		return this.sStuPartClass;
	}

	public Byte getbCloseCloud() {
		return bCloseCloud;
	}

	public void setbCloseCloud(Byte bCloseCloud) {
		this.bCloseCloud = bCloseCloud;
	}

	public String toString() {
		return JSONUtil.toJSON(this);
	}
	
}

	
